package com.cx.thread.message;

/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package com.cx.thread.message
 * @Description:
 * @Date 2025/5/26 16:41
 */

public class ProducerThread extends Thread{

    private Producer producer;

    public ProducerThread(Producer producer){
        this.producer = producer;
    }
    @Override
    public void run(){
        producer.produce();
    }
}